﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.AdminPageBase" %>
<ali:List ID="Menu" Mark="System" Object="Channel.Menu" Operation="ListByRight((Guid)Channel[ID], Convert.ToInt32(Request.QueryString['ParentID']))" Lang="PageLang"/>
<section data-page="nav">
	<ali:List Mark="System" Object="Channel.Menu" Source="Menu" Condition="ParentChain like '%.' + Request.QueryString['ParentID']">
		<div class="ali-accordion" data-height-style="fill">
			<ali:Record>
				<h1><%=Name%></h1>
				<div>
					<ali:List Mark="System" Object="Channel.Menu" Source="Menu" Condition="ParentID=ID">
						<ul class="ali-tree">
							<ali:Record>
								<li>
									<%If Convert.ToString(Target) == ""%>
										<a href="<%=URL%>" target="ali-navtab"><%=Name%></a>
									<%Else%>
										<a href="<%=URL%>" target="<%=Target%>"><%=Name%></a>
									<%EndIf%>

									<ali:List Mark="System" Object="Channel.Menu" Source="Menu" Condition="ParentID=ID">
										<ul>
											<ali:Record>
												<%If Convert.ToString(Target) == ""%>
													<li><a href="<%=URL%>" target="ali-navtab"><%=Name%></a></li>
												<%Else%>
													<li><a href="<%=URL%>" target="<%=Target%>"><%=Name%></a></li>
												<%EndIf%>
											</ali:Record>
										</ul>
									</ali:List>
								</li>
							</ali:Record>
						</ul>
					</ali:List>
				</div>
			</ali:Record>
		</div>
	</ali:List>
</section>